<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box1{
            /*float: right;*/
            float: left;
            width: 100px;
            height: 100px;
            background-color: red;
        }
        .box2{
            float: right;
            /*float: left;*/
            width: 100px;
            height: 100px;
            background-color: blue;
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
</body>
<script type="text/javascript">

</script>

</html>
